package com.atguigu.lease.common.constant;

import org.springframework.stereotype.Component;

/**
 * ClassName:RedisConstant
 * Package: com.atguigu.lease.common.constant
 * Description:
 *
 * @Author Makabaka
 * @Create 2024/9/25 19:40
 * @Version 1.0
 */
//redis 的相关配置
@Component
public class RedisConstant {

//    分组名称
    public static final String ADMIN_LOGIN_PREFIX = "admin:login:";
//    生存时间
    public static final Integer ADMIN_LOGIN_CAPTCHA_TTL_SEC = 60;
    public static final String APP_LOGIN_PREFIX = "app:login:";
    public static final Integer APP_LOGIN_CODE_RESEND_TIME_SEC = 60;
    public static final Integer APP_LOGIN_CODE_TTL_SEC = 30;
}

